finalized class file to prevent php warnings