now with added depth test