checking if functional