taking out unnecessary space