implement resize command