bug fixed depth added