fixed val to def