using the cheks properly