using function instead large amount of typing