fixed stupid coding