implementing physics