added in animation and direction