implemented drawing variables