reduce redundant/unnecessary code