tried to get rid from global constants