error from this but shouldnt be