cleaned up space errors