changed the postfix to prefix