this was a mess