this stupid bug took too long to fix grrr