added the required functionality without style