removed unnecessary function and styling