added check for lcd enabled