used style to remove duplication