removing the space from the logic