add own implementation of generated method

resolves #4