methods can be translated to javascript