now use 1 external function for styling