fixed some stupidity