changed shadows and moved a variable