implementation of physics