added necesary code for foundation to work