removes few redundant steps