added shape reset functionality