code checking works