refactored the code in placement